/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Live-Video
 * 直播管理API
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;

namespace  JDCloudSDK.Live.Apis
{

    /// <summary>
    ///  更新直播拉流转推任务
        ///         /// 
    /// </summary>
    public class UpdateLiveForwardTaskRequest : JdcloudRequest
    {
        ///<summary>
        /// 任务ID
        /// 
        ///Required:true
        ///</summary>
        [Required]
        public   string TaskId{ get; set; }
        ///<summary>
        /// 拉流地址
        /// - 支持rtmp
        /// 
        ///</summary>
        public   string SourceUrl{ get; set; }
        ///<summary>
        /// 转推地址
        /// - 支持rtmp
        /// 
        ///</summary>
        public   string PushUrl{ get; set; }
        ///<summary>
        /// 开始时间
        /// - UTC时间， ISO8601示例：2021-07-26T08:08:08Z
        /// - 不填表示立即开始
        /// 
        ///</summary>
        public   string StartTime{ get; set; }
        ///<summary>
        /// 结束时间
        /// - UTC时间， ISO8601示例：2021-07-26T08:08:08Z
        /// - 最大支持365天，与开始时间间隔不超过7天。
        /// - 不填拉不到流10分钟自动结束
        /// 
        ///</summary>
        public   string EndTime{ get; set; }
        ///<summary>
        /// 回调类型
        /// - 不填发送全部回调
        /// - TaskStart 任务开始
        /// - TaskExit 任务结束
        /// - callbackUrl非空的情况下，callbackEvents有效
        /// 
        ///</summary>
        public List<string> CallbackEvents{ get; set; }

        ///<summary>
        /// 事件回调地址
        /// 
        ///</summary>
        public   string CallbackUrl{ get; set; }
        ///<summary>
        /// 任务名称
        /// - 最大255字符
        /// 
        ///</summary>
        public   string Name{ get; set; }
    }
}